import { observable } from "mobx";
import { Session } from '@/service/Session';

export class PageHeaderDataObservable {

    /**项目名 */
    @observable projectTitle: string | undefined = Session.getUser()?.projectName

    private static _singleton: PageHeaderDataObservable | undefined

    /**获取当前对象的单例实例 */
    public static singleton() {
        if (typeof this._singleton == "undefined") {
            this._singleton = new PageHeaderDataObservable()
        }
        return this._singleton
    }

}